From: Florian Müllner Date: Sun, 22 Jul 2018 01:31:54 +0000 (+0200) Subject: windowManager: Small cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~65 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1abfbb82c5b3c6fc3cad104059a4c122bbf6db60;p=gnome-shell.git windowManager: Small cleanup We start with a dim factor of 0, so the syncEnabled() call in the constructor will always disable the effect. Just create the effect disabled and save the method call. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/654 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 44774f095..04046b131 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -117,12 +117,13 @@ class DisplayChangeDialog extends ModalDialog.ModalDialog { var WindowDimmer = class { constructor(actor) { - this._brightnessEffect = new Clutter.BrightnessContrastEffect(); + this._brightnessEffect = new Clutter.BrightnessContrastEffect({ + enabled: false + }); actor.add_effect(this._brightnessEffect); this.actor = actor; this._enabled = true; this._dimFactor = 0.0; - this._syncEnabled(); } _syncEnabled() {